package com.ruoyi.courseManagement.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程分类对象 category
 * 
 * @author ruoyi
 * @date 2025-06-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课程分类id */
    private Integer categoryId;

    /** 类型名称 */
    @Excel(name = "类型名称")
    private String categoryName;

    /** 父级id */
    @Excel(name = "父级id")
    private Integer parentId;

    /** 排序序号 */
    @Excel(name = "排序序号")
    private Integer categorySort;

    /** 校区id */
    @Excel(name = "校区id")
    private Integer campusId;

    /** 状态：0-删除 1-正常 */
    @Excel(name = "状态：0-删除 1-正常")
    private Integer categoryStatus;

    /** 备用字段1 */
    private String demo1;

    /** 备用字段2 */
    private String demo2;

    /** 备用字段3 */
    private String demo3;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("parentId", getParentId())
            .append("categorySort", getCategorySort())
            .append("campusId", getCampusId())
            .append("categoryStatus", getCategoryStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
